﻿public class HomeWork {

	public static void main(String[] args) {
		int way = 1;
		int k = 0;
		for (int i = 1; i <= 20; i++) {
			for (int j = 1; j <= 33; j++) {
				k = 100 - j - i;
				if(k%3==0&&5*i+3*j+k/3==100){
					System.out.println("[买法"+ way++ + "]");
				    System.out.println("公鸡："+i+"          母鸡："+j+"         雏鸡："+k);
				}
			}			
		}
	}
}